<%@ page language="java" pageEncoding="UTF-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>网站管理-网站模板</title>
		<jsp:include page="../../include/base.jsp"></jsp:include>
		<jsp:include page="../../include/common.jsp"></jsp:include>
		<link type="text/css" rel="stylesheet" href="../../resource/css/webmgr/webmgr.css"/>
	</head>
	
	<body>
		<div class="mini-layout" splitSize="3" style="width: 100%;height:100%;">
		 	<div region="west" showHeader="false" allowResize="true" width="200px" maxWidth="260px" minWidth="100px;">
		 		<div id="tplTreeMenu" class="mini-toolbar" style="border-top:0;border-left:0;border-right:0;
		 			font-size:12px;padding-left:6px;">
		 			<input id="tplTreeReload" class="mini-button" text="刷新" iconCls="icon-btn-refresh" 
		       			plain="true" onclick="onTplTreeReloadClick"/> 
		 		</div>
		 		<ul id="tplTree" class="mini-tree" style="width:100%;" showTreeIcon="true" resultAsTree="false"
		 			leafIcon="mini-tree-folder" idField="path" textField="name" parentField="parent" 
		 			onload="onTplTreeLoaded" onnodeclick="onTplTreeNodeClick">
		 		</ul>
		 	</div>
		 	<div region="center" style="border:0;">
		 		<div id="tplGridMenu" class="mini-toolbar" style="border-bottom:0;font-size:12px;padding-left:6px;">
		 			<input id="tplGridFolder" class="mini-button" text="新建目录" iconCls="icon-addfolder" 
		       			plain="true" onclick="onTplGridFolderClick"/>
		       		<input id="tplGridFile" class="mini-button" text="新建文件" iconCls="icon-new" 
		       			plain="true" onclick="onTplGridFileClick"/>
		       		<input id="resGridUpload" class="mini-button" text="上传文件" iconCls="icon-upload" 
		       			plain="true" onclick="onTplGridUploadClick"/>
		       		<input id="tplGridRemove" class="mini-button" text="删除" iconCls="icon-remove" 
		       			plain="true" onclick="onTplGridRemoveClick"/> 
		       		<input id="tplGridAfresh" class="mini-button" text="刷新" iconCls="icon-btn-refresh"  
		       			plain="true" onclick="afresh"/>
		 		</div>
		 		<div class="mini-fit">
		 			<div id="tplGrid" class="mini-datagrid" style="width:100%; height:100%;" fitColumns="true" 
			 			virtualScroll="true" multiSelect="true" pageSize="10" idField="path" 
			 			ondrawcell="onTplGridDrawCell">
				        <div property="columns">
				        	<div type="checkcolumn"></div>
				        	<div field="icon" width="29" align="center" headerAlign="center"></div>
				            <div field="name" width="100%" headerAlign="center">文件名</div>
				            <div field="size" width="100" align="right" headerAlign="center">大小</div>
				            <div field="last" width="140" align="center" headerAlign="center">最后修改时间</div>
				            <div field="operator" width="140" align="center" headerAlign="center">操作选项</div>
				        </div>
				    </div>
		 		</div>
		 	</div>
		 </div>
	</body>
	<script type="text/javascript" language="javascript" src="config/WebMgrConfig.js"></script>
	<script type="text/javascript" language="javascript" src="handler/WebTplHandler.js"></script>
</html>
